package com.etc.common.util;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.BeanUtils;
import org.apache.commons.beanutils.ConvertUtils;

import com.etc.common.util.converter.IntegerConverter;

public class CustomBeanUtils extends BeanUtils {
	static {
		ConvertUtils.register(new IntegerConverter(), java.lang.Integer.class);
	}

	public static void copyProperties(Object dest, Object orig)
			throws IllegalAccessException, InvocationTargetException {
		BeanUtils.copyProperties(dest, orig);
	}
}
